createTeam

  • function
 

Sets properties on the team model then persists it to the server. Once the "save" request resolves a new Team instance is created and assigned to team.

viewmodel.createTeam(ev)

Sets properties on the team model then persists it to the server. Once the "save" request resolves a new Team instance is created and assigned to team.

Parameters

  1. ev {Event}Optional

    A DOM Level 2 event that preventDefault will be called on.